package com.jet.goods.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jet.goods.domain.entity.GoodsSpu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jet.goods.domain.query.SpuPageQuery;
import com.jet.goods.domain.query.SpuQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-03-04
 */
public interface GoodsSpuMapper extends BaseMapper<GoodsSpu> {


    List<GoodsSpu> findListByQuery(@Param("merchantNo") long merchantNo, @Param("query") SpuQuery query);

    List<GoodsSpu> findPageByQuery(Page<GoodsSpu> page, @Param("merchantNo") long merchantNo, @Param("query") SpuPageQuery query);
}
